//
//  QRCodeViewController.m
//  AppointmentForCar
//
//  Created by Herron on 2016/11/30.
//  Copyright © 2016年 Herron. All rights reserved.
//

#import "QRCodeViewController.h"
#import "QRCodeImage.h"

@interface QRCodeViewController ()

@property (weak, nonatomic) IBOutlet UIImageView *qrImageView;
@property (weak, nonatomic) IBOutlet UILabel *codeLabel;

@end

@implementation QRCodeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"我的二维码";
//    self.code = @"A01-001";
    QRCodeImage *qrCodeImage = [QRCodeImage codeImageWithString:self.code
                                                           size:200
                                                          color:[UIColor colorWithString:@"#000000"]
                                                           icon:nil
                                                      iconWidth:0];
    self.qrImageView.image = qrCodeImage;
    self.codeLabel.text = self.code;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
